package com.ys.controller.web.sys;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ys.vo.W;

/**
 * 
 * @author Jason
 *
 */
@Controller
@RequestMapping("/web/sys/ysButton")
public class WebYsButtonController {
	
	/**
	 * 设置下拉按钮
	 */
	@GetMapping("/toSettingItem")
	public String toSettingItem(Model model, Long pid){
		if (pid == null) {
			return W.error(model, "所属按钮ID不能为空");
		}
		model.addAttribute("pid", pid);
		return "sys/ysButton/toSettingItem";
	}
}
